package net.dodoman.decoration;

public class DecorationMain {

	public static void main(String[] args) {
		Beverage coffee = new Coffee();
		coffee = new Sugar(coffee);
		coffee = new Salt(coffee);
		System.out.println(coffee.cost());
		Beverage coffee1 = new Salt(new Sugar(new Coffee()));
		System.out.println(coffee1.cost());
		Beverage coffee2 = new Salt(new Salt(new Coffee()));
		System.out.println(coffee2.cost());
	}

}
